10 PRINT " You return to the New Kingdom where you are eagerly received at the Palace.": PRINT
20 R4 = A%(65,4): IF R4 = 50 THEN PRINT " They're sorry you didn't find the rod. They thank you for trying and solemnly prepare for the end.": PRINT : PRINT : GOTO 32050
30 IF R4 = -1 OR (R4 = -2 AND M%(2,5) = 1) OR (R4 = -5 AND M%(5,5) = 1) THEN 50
40 PRINT " They're sorry you weren't able to bring the rod out of the castle. How close you came -- actually finding it, then losing it. Solemnly they prepare for the end.": PRINT : PRINT : GOTO 32050
50 PRINT " They see that you have the rod. Relief, then ecstasy, sweeps the Court.": PRINT
55 A%(65,4) = 0
60 PRINT " 'You have won great battles, solved great mysteries, and saved our nation....again! Truly yours will be a name remembered for all time.'": PRINT
70 PRINT " 'And, I see, you made a bit of money out of it all.....'": PRINT :TV = 1: GOTO 32050
100 REM DIE - COMPANIONS SURVIVE
110 VTAB 5: PRINT " The enemy was defeated, but your companions can do nothing except bury you.": PRINT : PRINT
120 GOTO 32000
200 REM DIE - COMPANIONS WIPED OUT
210 VTAB 5: PRINT " Your companions fought on bravely but eventually succumbed.": PRINT : PRINT
220 GOTO 32000
300 REM DIE - YOU WERE THE LAST
310 VTAB 5: PRINT " As the light fades from your eyes, you wish you had done things differently.": PRINT : PRINT
320 GOTO 32000
32000 DI = 1
32050 REM
32080 INVERSE : PRINT SPC( 70);: NORMAL : PRINT " THE END.": PRINT : PRINT : IF NOT DI THEN 32500
32100 VTAB 20: PRINT "TRY AGAIN? Y/N: ";
32110 GET A$: IF A$ < >"Y" AND A$ < >"y" AND A$ < >"N" AND A$ < >"n" THEN 32110
32120 PRINT A$: PRINT : IF A$ = "N" OR A$ = "n" THEN PRINT CHR$(4)"BYE"
32130 PRINT D$"RUN CT.INTRO"
32500 REM ASSESS SCORE
32600 PRINT " BATTLE POINTS: ";TB%(0)
32700 IF TV THEN PRINT " BONUS: KINGDOM SAVED: 1000":TB%(0) = TB%(0) +1000
32810 FOR A = 1 TO NA: IF NOT A%(A,1) THEN NEXT : GOTO 32860
32820 R4 = A%(A,4)
32830 IF R4 > -1 OR R4 < -5 THEN NEXT : GOTO 32860
32840 DF = ABS(R4): IF M%(DF,5) < >1 THEN NEXT : GOTO 32860
32850 TG = TG +A%(A,1): NEXT
32860 PC = TG/1435:PC = INT(PC *100): IF PC >100 THEN PC = 100